home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / gnu / gnu_oleo_1_2_2.lha / oleo-1.2.2 / configure < prev    next >
Text File  |  1993-03-03  |  15KB  |  664 lines

  1.  
  2. #!/bin/sh
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf.
  5. # Copyright (C) 1991, 1992 Free Software Foundation, Inc.
  6.  
  7. # This program is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2, or (at your option)
  10. # any later version.
  11.  
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details.
  16.  
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program; if not, write to the Free Software
  19. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. # Usage: configure [--srcdir=DIR] [--host=HOST] [--gas] [--nfp] [--no-create]
  22. #        [--prefix=PREFIX] [--exec-prefix=PREFIX] [--with-PACKAGE] [TARGET]
  23. # Ignores all args except --srcdir, --prefix, --exec-prefix, --no-create, and
  24. # --with-PACKAGE unless this script has special code to handle it.
  25.  
  26.  
  27. for arg
  28. do
  29.   # Handle --exec-prefix with a space before the argument.
  30.   if test x$next_exec_prefix = xyes; then exec_prefix=$arg; next_exec_prefix=
  31.   # Handle --host with a space before the argument.
  32.   elif test x$next_host = xyes; then next_host=
  33.   # Handle --prefix with a space before the argument.
  34.   elif test x$next_prefix = xyes; then prefix=$arg; next_prefix=
  35.   # Handle --srcdir with a space before the argument.
  36.   elif test x$next_srcdir = xyes; then srcdir=$arg; next_srcdir=
  37.   else
  38.     case $arg in
  39.      # For backward compatibility, also recognize exact --exec_prefix.
  40.      -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* | --exec=* | --exe=* | --ex=* | --e=*)
  41.     exec_prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  42.      -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- | --exec | --exe | --ex | --e)
  43.     next_exec_prefix=yes ;;
  44.  
  45.      -gas | --gas | --ga | --g) ;;
  46.  
  47.      -host=* | --host=* | --hos=* | --ho=* | --h=*) ;;
  48.      -host | --host | --hos | --ho | --h)
  49.     next_host=yes ;;
  50.  
  51.      -nfp | --nfp | --nf) ;;
  52.  
  53.      -no-create | --no-create | --no-creat | --no-crea | --no-cre | --no-cr | --no-c | --no- | --no)
  54.         no_create=1 ;;
  55.  
  56.      -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  57.     prefix=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  58.      -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  59.     next_prefix=yes ;;
  60.  
  61.      -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=* | --s=*)
  62.     srcdir=`echo $arg | sed 's/[-a-z_]*=//'` ;;
  63.      -srcdir | --srcdir | --srcdi | --srcd | --src | --sr | --s)
  64.     next_srcdir=yes ;;
  65.  
  66.      -with-* | --with-*)
  67.        package=`echo $arg|sed 's/-*with-//'`
  68.        # Delete all the valid chars; see if any are left.
  69.        if test -n "`echo $package|sed 's/[-a-zA-Z0-9_]*//g'`"; then
  70.          echo "configure: $package: invalid package name" >&2; exit 1
  71.        fi
  72.        eval "with_`echo $package|sed s/-/_/g`=1" ;;
  73.  
  74.      *) ;;
  75.     esac
  76.   fi
  77. done
  78.  
  79. trap 'rm -f conftest* core; exit 1' 1 3 15
  80.  
  81. rm -f conftest*
  82. compile='${CC-cc} $DEFS conftest.c -o conftest $LIBS >/dev/null 2>&1'
  83.  
  84. # A filename unique to this package, relative to the directory that
  85. # configure is in, which we can look for to find out if srcdir is correct.
  86. unique_file=io-term.c
  87.  
  88. # Find the source files, if location was not specified.
  89. if test -z "$srcdir"; then
  90.   srcdirdefaulted=yes
  91.   # Try the directory containing this script, then `..'.
  92.   prog=$0
  93.   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  94.   test "X$confdir" = "X$prog" && confdir=.
  95.   srcdir=$confdir
  96.   if test ! -r $srcdir/$unique_file; then
  97.     srcdir=..
  98.   fi
  99. fi
  100. if test ! -r $srcdir/$unique_file; then
  101.   if test x$srcdirdefaulted = xyes; then
  102.     echo "configure: Can not find sources in \`${confdir}' or \`..'." 1>&2
  103.   else
  104.     echo "configure: Can not find sources in \`${srcdir}'." 1>&2
  105.   fi
  106.   exit 1
  107. fi
  108. # Preserve a srcdir of `.' to avoid automounter screwups with pwd.
  109. # But we can't avoid them for `..', to make subdirectories work.
  110. case $srcdir in
  111.   .|/*|~*) ;;
  112.   *) srcdir=`cd $srcdir; pwd` ;; # Make relative path absolute.
  113. esac
  114.  
  115.  
  116.  
  117. if test -z "$CC"; then
  118.   echo checking for gcc
  119.   saveifs="$IFS"; IFS="${IFS}:"
  120.   for dir in $PATH; do
  121.     test -z "$dir" && dir=.
  122.     if test -f $dir/gcc; then
  123.       CC="gcc"
  124.       break
  125.     fi
  126.   done
  127.   IFS="$saveifs"
  128. fi
  129. test -z "$CC" && CC="cc"
  130.  
  131. # Find out if we are using GNU C, under whatever name.
  132. cat > conftest.c <<EOF
  133. #ifdef __GNUC__
  134.   yes
  135. #endif
  136. EOF
  137. ${CC-cc} -E conftest.c > conftest.out 2>&1
  138. if egrep yes conftest.out >/dev/null 2>&1; then
  139.   GCC=1 # For later tests.
  140. fi
  141. rm -f conftest*
  142.  
  143. echo checking how to run the C preprocessor
  144. if test -z "$CPP"; then
  145.   CPP='${CC-cc} -E'
  146.   cat > conftest.c <<EOF
  147.  
  148. #include <stdio.h>
  149. EOF
  150. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  151. if test -z "$err"; then
  152.   :
  153. else
  154.   CPP=/lib/cpp
  155. fi
  156. rm -f conftest*
  157. fi
  158.  
  159. if test -z "$YACC"; then
  160.   echo checking for bison
  161.   saveifs="$IFS"; IFS="${IFS}:"
  162.   for dir in $PATH; do
  163.     test -z "$dir" && dir=.
  164.     if test -f $dir/bison; then
  165.       YACC="bison -y"
  166.       break
  167.     fi
  168.   done
  169.   IFS="$saveifs"
  170. fi
  171. test -z "$YACC" && YACC=""
  172.  
  173. if test -z "$YACC"; then
  174.   echo checking for byacc
  175.   saveifs="$IFS"; IFS="${IFS}:"
  176.   for dir in $PATH; do
  177.     test -z "$dir" && dir=.
  178.     if test -f $dir/byacc; then
  179.       YACC="byacc"
  180.       break
  181.     fi
  182.   done
  183.   IFS="$saveifs"
  184. fi
  185. test -z "$YACC" && YACC="yacc"
  186.  
  187.  
  188. # Make sure to not get the incompatible SysV /etc/install and
  189. # /usr/sbin/install, which might be in PATH before a BSD-like install,
  190. # or the SunOS /usr/etc/install directory, or the AIX /bin/install,
  191. # or the AFS install, which mishandles nonexistent args.  (Sigh.)
  192. if test -z "$INSTALL"; then
  193.   echo checking for install
  194.   saveifs="$IFS"; IFS="${IFS}:"
  195.   for dir in $PATH; do
  196.     test -z "$dir" && dir=.
  197.     case $dir in
  198.     /etc|/usr/sbin|/usr/etc|/usr/afsws/bin) ;;
  199.     *)
  200.       if test -f $dir/install; then
  201.     if grep dspmsg $dir/install >/dev/null 2>&1; then
  202.       : # AIX
  203.     else
  204.       INSTALL="$dir/install -c"
  205.       INSTALL_PROGRAM='$(INSTALL)'
  206.       INSTALL_DATA='$(INSTALL) -m 644'
  207.       break
  208.     fi
  209.       fi
  210.       ;;
  211.     esac
  212.   done
  213.   IFS="$saveifs"
  214. fi
  215. INSTALL=${INSTALL-cp}
  216. INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}
  217. INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}
  218.  
  219.  
  220. echo checking for POSIXized ISC
  221. if test -d /etc/conf/kconfig.d &&
  222.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  223. then
  224.   ISC=1 # If later tests want to check for ISC.
  225.   DEFS="$DEFS -D_POSIX_SOURCE=1"
  226.   if test -n "$GCC"; then
  227.     CC="$CC -posix"
  228.   else
  229.     CC="$CC -Xp"
  230.   fi
  231. fi
  232.  
  233.  
  234. echo checking for ANSI C header files
  235. cat > conftest.c <<EOF
  236.  
  237. #include <stdlib.h>
  238. #include <stdarg.h>
  239. #include <string.h>
  240. #include <float.h>
  241. EOF
  242. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  243. if test -z "$err"; then
  244.   # SunOS string.h does not declare mem*, contrary to ANSI.
  245. echo '#include <string.h>' > conftest.c
  246. eval "$CPP $DEFS conftest.c > conftest.out 2>&1"
  247. if egrep "memchr" conftest.out >/dev/null 2>&1; then
  248.   # SGI's /bin/cc from Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  249. cat > conftest.c <<EOF
  250. #include <ctype.h>
  251. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  252. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  253. #define XOR(e,f) (((e) && !(f)) || (!(e) && (f)))
  254. int main () { int i; for (i = 0; i < 256; i++)
  255. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  256. exit (0); }
  257.  
  258. EOF
  259. eval $compile
  260. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  261.   DEFS="$DEFS -DSTDC_HEADERS=1"
  262. fi
  263. rm -f conftest*
  264. fi
  265. rm -f conftest*
  266.  
  267. fi
  268. rm -f conftest*
  269.  
  270. echo checking for unistd.h
  271. cat > conftest.c <<EOF
  272.  
  273. #include <unistd.h>
  274. EOF
  275. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  276. if test -z "$err"; then
  277.   DEFS="$DEFS -DHAVE_UNISTD_H=1"
  278. fi
  279. rm -f conftest*
  280.  
  281. echo checking for directory library header
  282. echo checking for dirent.h
  283. cat > conftest.c <<EOF
  284.  
  285. #include <dirent.h>
  286. EOF
  287. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  288. if test -z "$err"; then
  289.   DEFS="$DEFS -DDIRENT=1" dirheader=dirent.h
  290. fi
  291. rm -f conftest*
  292.  
  293. if test -z "$dirheader"; then
  294. echo checking for sys/ndir.h
  295. cat > conftest.c <<EOF
  296.  
  297. #include <sys/ndir.h>
  298. EOF
  299. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  300. if test -z "$err"; then
  301.   DEFS="$DEFS -DSYSNDIR=1" dirheader=sys/ndir.h
  302. fi
  303. rm -f conftest*
  304.  
  305. fi
  306. if test -z "$dirheader"; then
  307. echo checking for sys/dir.h
  308. cat > conftest.c <<EOF
  309.  
  310. #include <sys/dir.h>
  311. EOF
  312. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  313. if test -z "$err"; then
  314.   DEFS="$DEFS -DSYSDIR=1" dirheader=sys/dir.h
  315. fi
  316. rm -f conftest*
  317.  
  318. fi
  319. if test -z "$dirheader"; then
  320. echo checking for ndir.h
  321. cat > conftest.c <<EOF
  322.  
  323. #include <ndir.h>
  324. EOF
  325. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  326. if test -z "$err"; then
  327.   DEFS="$DEFS -DNDIR=1" dirheader=ndir.h
  328. fi
  329. rm -f conftest*
  330.  
  331. fi
  332.  
  333. echo checking for closedir return value
  334. cat > conftest.c <<EOF
  335. #include <sys/types.h>
  336. #include <$dirheader>
  337. int closedir(); main() { exit(0); }
  338. EOF
  339. eval $compile
  340. if test -s conftest && (./conftest; exit) 2>/dev/null; then
  341.   :
  342. else
  343.   DEFS="$DEFS -DVOID_CLOSEDIR=1"
  344. fi
  345. rm -f conftest*
  346.  
  347. for hdr in sys/time.h string.h memory.h sys/select.h
  348. do
  349. trhdr=HAVE_`echo $hdr | tr '[a-z]./' '[A-Z]__'`
  350. echo checking for ${hdr}
  351. cat > conftest.c <<EOF
  352.  
  353. #include <${hdr}>
  354. EOF
  355. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  356. if test -z "$err"; then
  357.   DEFS="$DEFS -D${trhdr}=1"
  358. fi
  359. rm -f conftest*
  360. done
  361.  
  362. echo checking for X11/X.h
  363. cat > conftest.c <<EOF
  364.  
  365. #include <X11/X.h>
  366. EOF
  367. err=`eval "$CPP $DEFS conftest.c 2>&1 >/dev/null"`
  368. if test -z "$err"; then
  369.   DEFS="$DEFS -DHAVE_X11_X_H=1"; LIBS="$LIBS -lX11"
  370. fi
  371. rm -f conftest*
  372.  
  373.  
  374. echo checking for return type of signal handlers
  375. cat > conftest.c <<EOF
  376. #include <sys/types.h>
  377. #include <signal.h>
  378. #ifdef signal
  379. #undef signal
  380. #endif
  381. extern void (*signal ()) ();
  382. main() { exit(0); } 
  383. t() { int i; }
  384. EOF
  385. if eval $compile; then
  386.   DEFS="$DEFS -DRETSIGTYPE=void"
  387. else
  388.   DEFS="$DEFS -DRETSIGTYPE=int"
  389. fi
  390. rm -f conftest*
  391.  
  392.  
  393. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  394. # for constant arguments.  Useless!
  395. echo checking for working alloca.h
  396. cat > conftest.c <<EOF
  397. #include <alloca.h>
  398. main() { exit(0); } 
  399. t() { char *p = alloca(2 * sizeof(int)); }
  400. EOF
  401. if eval $compile; then
  402.   DEFS="$DEFS -DHAVE_ALLOCA_H=1"
  403. fi
  404. rm -f conftest*
  405.  
  406. decl="#ifdef __GNUC__
  407. #define alloca __builtin_alloca
  408. #else
  409. #if HAVE_ALLOCA_H
  410. #include <alloca.h>
  411. #else
  412. #ifdef _AIX
  413.  #pragma alloca
  414. #else
  415. char *alloca ();
  416. #endif
  417. #endif
  418. #endif
  419. "
  420. echo checking for alloca
  421. cat > conftest.c <<EOF
  422. $decl
  423. main() { exit(0); } 
  424. t() { char *p = (char *) alloca(1); }
  425. EOF
  426. if eval $compile; then
  427.   :
  428. else
  429.   alloca_missing=1
  430. fi
  431. rm -f conftest*
  432.  
  433. if test -n "$alloca_missing"; then
  434.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  435.   # that cause trouble.  Some versions do not even contain alloca or
  436.   # contain a buggy version.  If you still want to use their alloca,
  437.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  438.   ALLOCA=alloca.o
  439. fi
  440.  
  441. for func in random
  442. do
  443. echo checking for ${func}
  444. cat > conftest.c <<EOF
  445.  
  446. main() { exit(0); } 
  447. t() { 
  448. /* Override any gcc2 internal prototype to avoid an error.  */
  449. extern char ${func}(); ${func}(); }
  450. EOF
  451. if eval $compile; then
  452.   :
  453. else
  454.   LIBOBJS="$LIBOBJS ${func}.o"
  455. fi
  456. rm -f conftest*
  457.  
  458. done
  459.  
  460.  
  461. need_doprnt=
  462. echo checking for vfprintf
  463. cat > conftest.c <<EOF
  464.  
  465. main() { exit(0); } 
  466. t() { vfprintf(); }
  467. EOF
  468. if eval $compile; then
  469.   :
  470. else
  471.   LIBOBJS="$LIBOBJS vfprintf.o"; need_doprnt=1
  472. fi
  473. rm -f conftest*
  474.  
  475. echo checking for vsprintf
  476. cat > conftest.c <<EOF
  477.  
  478. main() { exit(0); } 
  479. t() { vsprintf(); }
  480. EOF
  481. if eval $compile; then
  482.   :
  483. else
  484.   LIBOBJS="$LIBOBJS vsprintf.o"; need_doprnt=1
  485. fi
  486. rm -f conftest*
  487.  
  488. if test $need_doprnt; then
  489.   for func in _doprnt
  490. do
  491. echo checking for ${func}
  492. cat > conftest.c <<EOF
  493.  
  494. main() { exit(0); } 
  495. t() { 
  496. /* Override any gcc2 internal prototype to avoid an error.  */
  497. extern char ${func}(); ${func}(); }
  498. EOF
  499. if eval $compile; then
  500.   :
  501. else
  502.   LIBOBJS="$LIBOBJS ${func}.o"
  503. fi
  504. rm -f conftest*
  505.  
  506. done
  507.  
  508. fi
  509.  
  510. libname=`echo "termlib" | sed 's/lib\([^\.]*\)\.a/\1/;s/-l//'`
  511. LIBS_save="${LIBS}"
  512. LIBS="${LIBS} -l${libname}"
  513. have_lib=""
  514. echo checking for -ltermlib
  515. cat > conftest.c <<EOF
  516.  
  517. main() { exit(0); } 
  518. t() { main(); }
  519. EOF
  520. if eval $compile; then
  521.   have_lib="1"
  522. fi
  523. rm -f conftest*
  524. LIBS="${LIBS_save}"
  525. if test -n "${have_lib}"; then
  526.    :; \
  527.         LIBS="$LIBS -lcurses -ltermlib"
  528. else
  529.    :; \
  530.         libname=`echo "termcap" | sed 's/lib\(^\.*\)\.a/\1/;s/-l//'`
  531. LIBS_save="${LIBS}"
  532. LIBS="${LIBS} -l${libname}"
  533. have_lib=""
  534. echo checking for -ltermcap
  535. cat > conftest.c <<EOF
  536.  
  537. main() { exit(0); } 
  538. t() { main(); }
  539. EOF
  540. if eval $compile; then
  541.   have_lib="1"
  542. fi
  543. rm -f conftest*
  544. LIBS="${LIBS_save}"
  545. if test -n "${have_lib}"; then
  546.    :; \
  547.                 LIBS="$LIBS -lcurses -ltermcap"
  548. else
  549.    :; \
  550.                 LIBS="$LIBS -lcurses"
  551. fi
  552.  
  553. fi
  554.  
  555.  
  556. LIBS_save="$LIBS"
  557. LIBS="$LIBS -lm"
  558. for func in rint rename \
  559.           getcap stricmp strincmp cbreak \
  560.           strdup strstr
  561. do
  562. trfunc=HAVE_`echo $func | tr '[a-z]' '[A-Z]'`
  563. echo checking for ${func}
  564. cat > conftest.c <<EOF
  565. #include <stdio.h>
  566. main() { exit(0); } 
  567. t() { 
  568. #ifdef __stub_${func}
  569. choke me
  570. #else
  571. /* Override any gcc2 internal prototype to avoid an error.  */
  572. extern char ${func}(); ${func}();
  573. #endif
  574.  }
  575. EOF
  576. if eval $compile; then
  577.   DEFS="$DEFS -D${trfunc}=1"
  578. fi
  579. rm -f conftest*
  580. #endif
  581. done
  582.  
  583. LIBS="$LIBS_save"
  584.  
  585. if test -n "$prefix"; then
  586.   test -z "$exec_prefix" && exec_prefix='$(prefix)'
  587.   prsub="s%^prefix[     ]*=.*$%prefix = $prefix%"
  588. fi
  589. if test -n "$exec_prefix"; then
  590.   prsub="$prsub
  591. s%^exec_prefix[     ]*=.*$%exec_prefix = $exec_prefix%"
  592. fi
  593.  
  594. trap 'rm -f config.status; exit 1' 1 3 15
  595. echo creating config.status
  596. rm -f config.status
  597. cat > config.status <<EOF
  598. #!/bin/sh
  599. # Generated automatically by configure.
  600. # Run this file to recreate the current configuration.
  601. # This directory was configured as follows,
  602. # on host `(hostname || uname -n) 2>/dev/null`:
  603. #
  604. # $0 $*
  605.  
  606. if test \$# -gt 0; then
  607.   case "\$1" in
  608.     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  609.     exec /bin/sh $0 $* ;;
  610.     *) echo "Usage: config.status --recheck" 2>&1; exit 1 ;;
  611.   esac
  612. fi
  613.  
  614. trap 'rm -f Makefile; exit 1' 1 3 15
  615. LIBS='$LIBS'
  616. CC='$CC'
  617. CPP='$CPP'
  618. YACC='$YACC'
  619. INSTALL='$INSTALL'
  620. INSTALL_PROGRAM='$INSTALL_PROGRAM'
  621. INSTALL_DATA='$INSTALL_DATA'
  622. ALLOCA='$ALLOCA'
  623. LIBOBJS='$LIBOBJS'
  624. srcdir='$srcdir'
  625. DEFS='$DEFS'
  626. prefix='$prefix'
  627. exec_prefix='$exec_prefix'
  628. prsub='$prsub'
  629. EOF
  630. cat >> config.status <<\EOF
  631.  
  632. top_srcdir=$srcdir
  633. for file in .. Makefile; do if [ "x$file" != "x.." ]; then
  634.   srcdir=$top_srcdir
  635.   # Remove last slash and all that follows it.  Not all systems have dirname.
  636.   dir=`echo $file|sed 's%/[^/][^/]*$%%'`
  637.   if test "$dir" != "$file"; then
  638.     test "$top_srcdir" != . && srcdir=$top_srcdir/$dir
  639.     test ! -d $dir && mkdir $dir
  640.   fi
  641.   echo creating $file
  642.   rm -f $file
  643.   echo "# Generated automatically from `basename $file`.in by configure." > $file
  644.   sed -e "
  645. $prsub
  646. s%@LIBS@%$LIBS%g
  647. s%@CC@%$CC%g
  648. s%@CPP@%$CPP%g
  649. s%@YACC@%$YACC%g
  650. s%@INSTALL@%$INSTALL%g
  651. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  652. s%@INSTALL_DATA@%$INSTALL_DATA%g
  653. s%@ALLOCA@%$ALLOCA%g
  654. s%@LIBOBJS@%$LIBOBJS%g
  655. s%@srcdir@%$srcdir%g
  656. s%@DEFS@%$DEFS%
  657. " $top_srcdir/${file}.in >> $file
  658. fi; done
  659.  
  660. EOF
  661. chmod +x config.status
  662. test -n "$no_create" || ./config.status
  663.  
  664.